//
//  PresonMondel.m
//  QuickCure1
//
//  Created by JianFeng on 16/11/2.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "PresonMondel.h"

@implementation PresonMondel
- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+ (instancetype)PresonWithDict:(NSDictionary *)dict{
    return [[self alloc] initWithDict:dict];
}



-(NSString *)description{
    return [self yy_modelDescription];
}



//归档解档
-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.number forKey:@"number"];
    [aCoder encodeObject:self.IPhone forKey:@"IPhone"];
    [aCoder encodeObject:self.ClassBING forKey:@"ClassBING"];
    [aCoder encodeObject:self.FenLeiBING forKey:@"FenLeiBING"];
    [aCoder encodeObject:self.imgPath forKey:@"imgPath"];
    [aCoder encodeObject:self.title forKey:@"title"];

    [aCoder encodeObject:self.xiaoShuKF forKey:@"xiaoShuKF"];

    [aCoder encodeObject:self.times forKey:@"times"];
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if(self = [super init]){
        
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.number = [aDecoder decodeObjectForKey:@"number"];
        self.IPhone = [aDecoder decodeObjectForKey:@"IPhone"];
        self.ClassBING = [aDecoder decodeObjectForKey:@"ClassBING"];
        self.FenLeiBING = [aDecoder decodeObjectForKey:@"FenLeiBING"];
        self.imgPath = [aDecoder decodeObjectForKey:@"imgPath"];
        self.title = [aDecoder decodeObjectForKey:@"title"];

        self.xiaoShuKF = [aDecoder decodeObjectForKey:@"xiaoShuKF"];

        self.times = [aDecoder decodeObjectForKey:@"times"];
    }
    
    return self;
}



@end
